package com.lc.hongtai.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

import java.util.List;

/**
 * Created by Administrator on 4/26/2016.
 */
@HttpInlet("user/borrow_in_detail")
public class JsonBorrowHuankuandetail extends HYAsyGet<JsonBorrowHuankuandetail.Info> {
    public String access_token;
    public int p;

    public String uid;
    public String id;


    //    String p,
    public JsonBorrowHuankuandetail(String access_token, String uid, String id, AsyCallBack<Info> asyCallBack) {
        super(asyCallBack);
        this.access_token = access_token;

        this.uid = uid;
        this.id = id;
    }


    @Override
    protected Info parser(JSONObject object) {
        Log.d(object.toString(), "asdkljf");

        Info info = new Info();
        Gson gson = new Gson();
        info = gson.fromJson(object.toString(), Info.class);

        TOAST = object.optString("tips");
        return info;
    }

    public static class Info {
        public List<JsonBorrowHuankuandetail.Info.Repayment_list> repayment_list;


        public static class Repayment_list {
            public String borrow_id;
            public String sort_order;
            public String capital;
            public String interest;
            public String status_cn;
            public String paid;
            public String deadline;
            public String needpay;
            public String status;
        }


    }
}